/**
 * HorsePolicy.java
 * @author Mikkel Christiansen, Stephan Marc Hansen
 */

package com.kea.firsthorse.shared;

import java.io.Serializable;

public class HorsePolicy implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2745974241542628074L;
	/**
	 * 
	 */
	private int policy_id;

	public int getPolicy_id() {
		return policy_id;
	}

	public void setPolicy_id(int policy_id) {
		this.policy_id = policy_id;
	}

	private boolean livsforsikring;
	private boolean kolikdaekning;
	private boolean tingskade;
	private boolean personskade;
	private int selvrisiko_kolik;
	private int selvrisiko_sygeforsikring;
	private int u_anvendelighedstab;
	private int u_anvendelighedstab_avlshingst;
	private int u_sygeforsikring;
	private int amount;
	private String time;
	private Horse horse;
	private Terms terms;

	/**
	 * @return the terms
	 */
	public Terms getTerms() {
		return terms;
	}

	/**
	 * @param terms the terms to set
	 */
	public void setTerms(Terms terms) {
		this.terms = terms;
	}

	/**
	 * @return the kolikdaekning
	 */
	public boolean isKolikdaekning() {
		return kolikdaekning;
	}

	public Horse getHorse() {
		return horse;
	}

	public void setHorse(Horse horse) {
		this.horse = horse;
	}

	public HorsePolicy() {

	}

	public boolean getLivsforsikring() {
		return livsforsikring;
	}

	public String getLivsforsikringAsString() {
		if (this.livsforsikring == true) {
			return "100.000"; 
		} else {
			return "Nej"; 
		}
	}

	public void setLivsforsikring(boolean livsforsikring) {
		this.livsforsikring = livsforsikring;
	}

	public boolean getkolikdaekning() {
		return kolikdaekning;
	}

	public String getKolikdaekningAsString() {
		if (this.kolikdaekning == true) {
			return "30.000"; 
		} else {
			return "Nej"; 
		}
	}

	public void setKolikdaekning(boolean kolikdaekning) {
		this.kolikdaekning = kolikdaekning;
	}

	public boolean getTingskade() {
		return tingskade;
	}

	public void setTingskade(boolean tingskade) {
		this.tingskade = tingskade;
	}

	public String getTingskadeAsString() {
		if (this.tingskade == true) {
			return "2.000.000"; 
		} else {
			return "Nej"; 
		}
	}

	public boolean getPersonskade() {
		return personskade;
	}

	public void setPersonskade(boolean personskade) {
		this.personskade = personskade;
	}

	public String getPersonskadeAsString() {
		if (this.personskade == true) {
			return "5.000.000"; 
		} else {
			return "Nej"; 
		}
	}

	public int getSelvrisiko_kolik() {
		return selvrisiko_kolik;
	}

	public void setSelvrisiko_kolik(int selvrisiko_kolik) {
		this.selvrisiko_kolik = selvrisiko_kolik;
	}

	public int getSelvrisiko_sygeforsikring() {
		return selvrisiko_sygeforsikring;
	}

	public void setSelvrisiko_sygeforsikring(int selvrisiko_sygeforsikring) {
		this.selvrisiko_sygeforsikring = selvrisiko_sygeforsikring;
	}

	public int getU_anvendelighedstab() {
		return u_anvendelighedstab;
	}

	public void setU_anvendelighedstab(int u_anvendelighedstab) {
		this.u_anvendelighedstab = u_anvendelighedstab;
	}

	public int getU_anvendelighedstab_avlshingst() {
		return u_anvendelighedstab_avlshingst;
	}

	public void setU_anvendelighedstab_avlshingst(
			int u_anvendelighedstab_avlshingst) {
		this.u_anvendelighedstab_avlshingst = u_anvendelighedstab_avlshingst;
	}

	public int getU_sygeforsikring() {
		return u_sygeforsikring;
	}

	public void setU_sygeforsikring(int u_sygeforsikring) {
		this.u_sygeforsikring = u_sygeforsikring;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getTerms_betingelser() {
		return this.terms.getTerms();
	}


	public String getTerms_saerlige() {
		return this.terms.getTerms();
	}

	public String getTerms_stempel() {
		return this.terms.getStempel();
	}


	public String getTerms_skader() {
		return this.terms.getSkader();
	}

}
